package com.tubang.logistics.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.tubang.logistics.entity.PlatformOrderGoodsEntity;
import com.tubang.logistics.entity.TruckerOrderGoodsEntity;
import com.tubang.logistics.mapper.TruckerOrderGoodsMapper;
import com.tubang.logistics.service.ITruckerOrderGoodsService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 运输司机运单-货品表 服务实现类
 * </p>
 *
 * @author wsl
 * @since 2017-12-31
 */
@Service
public class TruckerOrderGoodsServiceImpl extends ServiceImpl<TruckerOrderGoodsMapper, TruckerOrderGoodsEntity> implements ITruckerOrderGoodsService {

    @Override
    public List<TruckerOrderGoodsEntity> selectOrderByOrderId(String orderId) {
        EntityWrapper<TruckerOrderGoodsEntity> entityWrapper = new EntityWrapper<TruckerOrderGoodsEntity>();
        entityWrapper.eq("order_id",orderId);
        List<TruckerOrderGoodsEntity> truckerOrderGoodsEntitys = selectList(entityWrapper);
        return truckerOrderGoodsEntitys;
    }
}
